Convert SQL queries to pandas

welcome to shbcf.ru